home *** CD-ROM | disk | FTP | other *** search
/ A.C.E. 3 / ACE CD 3.iso / files / utils / photog3.dms / in.adf / DevDocs.lha / include / photogenics / gio.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-07  |  2.5 KB  |  108 lines

  1. /* extended for V1.2!! */
  2.  
  3.  
  4. #ifndef GRAPHICS_GFXBASE_H
  5. #include <graphics/gfxbase.h>
  6. #endif
  7.  
  8. #ifndef INTUITION_INTUITIONBASE_H
  9. #include <intuition/intuitionbase.h>
  10. #endif
  11.  
  12. #define GIOF_LOADER8        1
  13. #define GIOF_LOADER24    2
  14. #define GIOF_SAVER8        4
  15. #define GIOF_SAVER24        8
  16. #define GIOF_LOADFILE    16
  17. #define GIOF_SAVEFILE    32
  18. #define GIOF_PLANAR        64                // data is loaded in planar format
  19. #define GIOF_NOID            128            // not able to identify file 
  20.                                                 // (skip in universial loader search)
  21. #define GIOF_NOFILEOPEN    256            // do file access internally
  22.                                                 // (giodata->Data and 
  23.                                                 // giodata->Filehandle are not set up)
  24. #define GIOF_CONTIGUOUS 512            // ** PRIVATE USE ONLY!! **
  25. #define GIOF_LOADNOPROGRESS 1024
  26. #define GIOF_SAVENOPROGRESS 2048
  27. #define GIOF_EXTENDED 4096                // extended features available 
  28. #define GIOF_SAVEPREFS 8192                // has prefs for loading
  29. #define GIOF_LOADPREFS 16384                // has prefs for saving
  30. struct GIOData
  31. {
  32.     struct    GIOData *Next;
  33.     struct    GIOData *Prev;
  34.     char        *Filename;
  35.     UBYTE        Data[64];
  36.     BPTR        Filehandle;
  37.     ULONG        Width;
  38.     ULONG        Height;
  39.     ULONG        Depth;
  40.     ULONG        P_width;
  41.     ULONG        P_height;
  42.     ULONG        P_top;
  43.     ULONG        P_left;
  44.     ULONG        VP_mode;
  45.     UWORD        Aspect_x;
  46.     UWORD        Aspect_y;
  47.     struct     BitMap *Bitmap;
  48.     UBYTE        **SrcLinetable;
  49.     UBYTE        **DestLinetable;
  50.     UBYTE        *Palette;
  51.     ULONG        Flags;
  52.     ULONG        Headerlength;
  53.     ULONG        Error;
  54.     ULONG        UserData;
  55.     ULONG        UserData2;
  56.     ULONG        UserData3;
  57.     struct     Library *PgsBase;
  58.     ULONG        SkipBytes;
  59.     struct     Library *DOSBase;
  60.     struct    GfxBase *GfxBase;
  61.     struct    IntuitionBase *IntuitionBase;
  62.     struct    Library *UtilityBase;
  63.     struct    Library *GadtoolsBase;
  64.     struct    Library *AslBase;
  65.     struct    Library *ColorwheelBase;
  66.     ULONG        extendedid;
  67.     struct    Screen  *PgsScreen;
  68.     UBYTE        **SecondLinetable;
  69.     UBYTE        **AlphaLinetable;
  70.     UBYTE        **PaintLinetable;
  71.     UWORD        WindX;
  72.     UWORD        WindY;
  73.     UWORD        WindWidth;
  74.     UWORD        WindHeight;
  75.     UWORD        DestWidth;
  76.     UWORD        DestHeight;
  77.     UWORD        SecondWidth;
  78.     UWORD        SecondHeight;
  79.     UWORD        AlphaWidth;
  80.     UWORD        AlphaHeight;
  81.     UWORD        DestDepth;
  82.     UWORD        SecondDepth;
  83.     UWORD        AlphaDepth;
  84.     UBYTE        *DestPalette;
  85.     UBYTE        *SecondPalette;
  86.     UBYTE        *AlphaPalette;
  87.  
  88. };
  89.  
  90. #define LOAD_OK             0
  91. #define LOAD_RAMERR         1
  92. #define LOAD_FILEERR         2
  93. #define LOAD_WRONGTYPE     3
  94. #define LOAD_SYSERR         4
  95. #define LOAD_ABORTED         5
  96. #define LOAD_UNAVAILABLE 6
  97.  
  98. #define    PCLONG    ULONG
  99. #define    PCWORD    UWORD
  100.  
  101. #define PGTAG_LISTMIN 0x81910050
  102. #define PGTAG_LISTMAX 0x81910060
  103. #define PGTAG_ENTRY 0x81900a0
  104. #define PGTAG_ENTRYID 0x81900b0
  105. #define PGTAG_ENTRYTEXT 0x81900c0
  106. #define PGTAG_ENTRYEND 0x81900e0
  107. #define PGTAG_END 0x8191ffff
  108.